package com.kkb.service.impl;

import com.kkb.bean.User;
import com.kkb.dao.UserDao;
import com.kkb.dao.impl.UserDaoImpl;
import com.kkb.service.UserService;

/**
 * 用户service实现
 */
public class UserServiceImpl implements UserService {
    private UserDao dao = new UserDaoImpl();

    @Override
    public User login(String loginName, String password) {
        return dao.findByLoginNameAndPassword(loginName,password);
    }
}